package com.ocp.socket.busi.pressureStat.mapper;

import com.ocp.socket.busi.pressureStat.bean.BasePressureStat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author : zhangzh
 * @description :
 * @Date Create in 13:28 2019/3/9
 * @Modified By :
 **/
@Mapper
public interface BasePressureStatMapper {


    /***
     * 插入气压状态表
     * @param basePressureStat
     * @return
     */
    int insertBasePressureStat(BasePressureStat basePressureStat);

    /***
     * 查询时间段内的平均气压
     * @param milkHallId
     * @param lineCode
     * @param startTime
     * @param endTime
     * @return
     */
    Double getAirpAvgValByHallIdAndTime(@Param("milkHallId") Integer milkHallId, @Param("lineCode") String lineCode, @Param("startTime") String startTime, @Param("endTime") String endTime);

}
